package model.database;
//Cloudscape concrete DAO Factory implementation

import java.util.Map;





public class HibernateDAOFactory extends model.database.DAOFactory {

	

	public HibernateDAOFactory(){

	}

	
/////////////////////////////////HASHMAPS for the FACADE/////////////////////
private Map resourceDAO;
private Map inventoryDAO;
private Map assignmentDAO;

public Map getResourceDAO(){
	return this.resourceDAO;
}

public ResourceDAO getResourceDAO(int kind){
	Integer k=kind;
	return (ResourceDAO) this.resourceDAO.get(k.toString());
}

public void setResourceDAO(Map rdao){
	this.resourceDAO=rdao;
}

public Map getInventoryDAO(){
	return this.inventoryDAO;
}
public void setInventoryDAO(Map rdao){
	this.inventoryDAO=rdao;
}
@Override
public InventoryDAO getInventoryDAO(int kind) {
	// TODO Auto-generated method stub
	Integer k=kind;
	return (InventoryDAO) this.inventoryDAO.get(k.toString());
}

public Map getAssignmentDAO(){
	return this.assignmentDAO;
}
public void setAssignmentDAO(Map rdao){
	this.assignmentDAO=rdao;
}

/**
 * @uml.property  name="companyDAO"
 */
private CompanyDAO companyDAO;

/**
 * Getter of the property <tt>companyDAO</tt>
 * @return  Returns the companyDAO.
 * @uml.property  name="companyDAO"
 */
public CompanyDAO getCompanyDAO() {
	return companyDAO;
}
/**
 * Setter of the property <tt>companyDAO</tt>
 * @param companyDAO  The companyDAO to set.
 * @uml.property  name="companyDAO"
 */
public void setCompanyDAO(CompanyDAO companyDAO) {
	this.companyDAO = companyDAO;
}




private LogDAO logDAO;

public LogDAO getLogDAO() {
	return logDAO;
}

public void setLogDAO(LogDAO logDAO) {
	this.logDAO = logDAO;
}

private OrcamentoDAO orcamentoDAO;

public OrcamentoDAO getOrcamentoDAO() {
	return orcamentoDAO;
}

public void setOrcamentoDAO(OrcamentoDAO orcamentoDAO) {
	this.orcamentoDAO = orcamentoDAO;
}





}
